package com.hskn.hss.module.dlbjviolation.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hskn.hss.module.carTrack.vo.CarTrackVo;
import com.hskn.hss.module.employeeTrack.vo.EmployeeTrackVo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author hskn
 * @since 2021-05-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class DlbjViolation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 道路保洁违规id
     */
    @TableId(value = "dlbj_violation_id", type = IdType.ASSIGN_UUID)
    private String dlbjViolationId;

    /**
     * 人员id
     */
    private String personId;

    /**
     * 人员姓名
     */
    private String personName;

    /**
     * 工种
     */
    private String personTypeId;

    /**
     * 工种
     */
    private String personTypeName;

    /**
     * 所属机构id
     */
    private String depid;

    /**
     * 所属机构名称
     */
    private String depName;

    /**
     * 违规地点 经度
     */
    private String lng;

    /**
     * 违规地点 纬度
     */
    private String lat;

    /**
     * 违规时间
     */
    private Date date;

    //日期
    @TableField(exist = false)
    private String day;

    /**
     * 位置地点名称
     */
    private String address;

    /**
     * 违规时长 秒
     */
    private String duration;

    /**
     * 违规类型
     */
    private String violationTypeId;
    private String violationTypeName;

    /**
     * 创建时间
     */
    private Date createTime;
    private String dealType;
    private String dealUid;
    private String dealRemark;

    private Date violationStartTime;

    private Date violationEndTime;

    private int isKeep;

    private String employeeTrackStartId;
    private String employeeTrackEndId;
    @TableField(exist = false)
    private List<EmployeeTrackVo> warningStayList;
    @TableField(exist = false)
    private List<EmployeeTrackVo> otherWarningList;
    @TableField(exist = false)
    private Integer messageType;
    @TableField(exist = false)
    private String id;

    /**
     * 网格Id
     */
    private String gridId;


    /**
     * 违规内容
     */
    private String content;

    public DlbjViolation(String dlbjViolationId, String dealType, String dealUid, String dealRemark) {
        this.dlbjViolationId = dlbjViolationId;
        this.dealType = dealType;
        this.dealUid = dealUid;
        this.dealRemark = dealRemark;
    }

    public DlbjViolation() {
    }
    /**
     * 人员头像
     */
    @TableField(exist = false)
    private String empHeadPortraitViolation;

    private BigDecimal violationValue;

    /**
     *是否停留(0正常 1停留)
     */
    private Integer isStop;
    /**
     *是否离岗(0正常 1离岗)
     */
    private Integer isDemobiliz;
    /**
     *是否聚众(0正常 1聚众)
     */
    private Integer isGather;
    /**
     * 是否已读(0未读  1已读)
     */
    @TableField(exist = false)
    private Integer isRead;
    /**
     * 日期类型
     */
    @TableField(exist = false)
    private String dateType;
    /**
     * 页数
     */
    @TableField(exist = false)
    private Integer pageNum;
    /**
     * 条数
     */
    @TableField(exist = false)
    private Integer pageSize;
}
